<!DOCTYPE HTML>
<html>
<head>
<include file="Public:head" />

<script src="__PUBLIC__/Static/js/uploadify/jquery.uploadify.v2.1.4.js" type="text/javascript"></script>

<script src="__PUBLIC__/Static/js/uploadify/swfobject.js" type="text/javascript"></script>

<link type="text/css" rel="stylesheet" href="__PUBLIC__/Static/js/uploadify/uploadify2.css" />

<script type="text/javascript">
	var vuserid = '{$visitor[userid]}', albumid = '{$strAlbum[albumid]}';
    var loadurl = "{:U('space/photos/album',array('d'=>'ajaxupload'))}";
	var objdata = {'userid': vuserid,'albumid': albumid};
	var jumpurl = "{:U('space/photos/album',array('d'=>'info','id'=>$strAlbum[albumid],'t'=>$smalltime))}";
$(document).ready(function()
{		
	$("#uploadify").uploadify({
		'uploader': siteUrl + 'Public/Static/js/uploadify/uploadify.swf',
		'expressInstall': siteUrl + 'Public/Static/js/uploadify/expressInstall.swf',
		'script': 'index.php?app=space&m=photos&a=album&d=ajaxupload',
		'scriptData':objdata,
		'method':'POST', 
		'cancelImg': siteUrl+'Public/Static/js/uploadify/cancel2.png',
		'folder': 'UploadFile',
		'queueID': 'fileQueue',
		'auto': false,
		'multi': true,
		'buttonText': '',
		'buttonImg': siteUrl+'Public/Static/images/upload-btns.png',		
		'fileDesc':'jpg,gif,png图片格式',
		'fileExt':'*.jpg;*.gif;*.png',
		'onAllComplete' : function(event,data) {
			window.location = jumpurl;
		}

	});

})
</script>
</head>

<body>
<include file="Public:header" />

<div class="midder">
<div class="mc">
	<h1>{$seo.title}</h1>
	<div class="cleft">
    
    	<if condition="$type neq 'n'">
            <div class="uploadtype">
                <div id="fileQueue"></div><br>
                <input type="file" id="uploadify" />
                <p style="padding:10px 0;">上传文件只支持：jpg，gif，png格式；上传最大支持1M的图片<br>
                    提示：每次最多可以批量上传二十张照片，按着 "ctrl" 键可以一次选择多张照片
                </p>
                <p style="padding:10px 0;">
                <a href="javascript:$('#uploadify').uploadifyUpload()" class="submit">开始上传</a>&nbsp;&nbsp;|&nbsp;&nbsp; 
                <a href="javascript:$('#uploadify').uploadifyClearQueue()" >取消上传</a>
                </p>
                <p><br>无法上传？<a href="{:U('space/photos/album',array('d'=>'upload','type'=>'n','id'=>$strAlbum[albumid]))}">使用普通方式上传照片&gt;</a></p>
       		</div>
        <else/> 
            <div class="uploadtype">
                <p class="pl">你可以上传JPG，JPEG， GIF，PNG，每个文件大小可以到1M。</p><br>
                <form enctype="multipart/form-data" action="{:U('space/photos/album',array('d'=>'upload','id'=>$strAlbum[albumid],'t'=>$smalltime))}" method="post" name="album_upload">
                <span class="pl">选择图片 </span>
                <input type="file" name="picfile"><br><br>
                <span class="bn-flat"><input type="submit" value="开始上传" name="upload"></span>
                </form>
                <p><br><a href="{:U('space/photos/album',array('d'=>'upload','id'=>$strAlbum[albumid]))}">使用批量上传方式上传照片&gt;</a></p>      
            </div>   	
    	</if>
        
    </div><!--//cleft-->
    <div class="cright">
        <div class="mod">
        所有相册空间的总容量为 5G。
        <br><br>
        <p class="pl2">&gt; <a href="{:U('space/photos/album',array('id'=>$strAlbum[albumid]))}">回相册"{$strAlbum[albumname]}"</a></p>
        </div>

        
    </div><!--//right-->
</div>
</div>

<include file="Public:footer" />
</body>
</html>